package com.qingcloud.base.remote.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 数据源同步表名
 * </p>
 *
 * @author wangjinnan
 * @since 2021-03-17
 */
@Getter
@Setter
@ToString
@ApiModel("同步模型弹框数据对象")
public class DsSyncTableDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据源表名列表")
    private List<TableTrans> sourceTableList;

    @ApiModelProperty(value = "系统当前表名列表")
    private List<TableTrans> currentTableList;

    /**
     * 表是否可移动信息
     */
    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    @Accessors(chain = true)
    @ApiModel("同步表时是否可移动标识")
    public static class TableTrans implements Serializable {

        @ApiModelProperty(value = "表名")
        private String tableName;

        @ApiModelProperty(value = "是否可操作 true可以，false不可以")
        private Boolean can;

    }

}
